{% comment %}
<table class="table_layout">
{% for item in log_list %}
  <tr>
    <td><a href="{% url log_details item.id %}">{{ item.id }}</a></td>
    <td>{{ item.date }}</td>
    <td>{{ item.message }}</td>
  </tr>
{% empty %}
    <tr><td>Sorry, no log in this list!</td></tr>
{% endfor %}
</table>
{% endcomment %}

<div id="log_list_ajax">
    {% for item in log_list %}
      <div class="log_list_row">
        <div class="date"><a href="{% url log_details item.id %}">{{ item.date|date:"d.m.Y - H:i:s" }}</a></div>
        <div class="agent"><a href="{% url agent_details item.agent.id %}">{{ item.agent }}</a></div>
        {% if item.task %}
        <div class="task"><a href="{% url task_queue_item_details item.task.id %}">{{ item.task.task|default:"&nbsp;" }}</a></div>
        {% else %}
        <div class="task">&nbsp;</div>
        {% endif %}
        <div class="msg">{{ item.message }}</div>
        
      </div>
    {% empty %}
      <div>Sorry, no log in this list!</div>
    {% endfor %}
</div>
